/** COPYRIGHT(C) 2008. Loc Phan. All Rights Reserved.
    A class that store info of a salaried worker
    @author Loc Phan
    @version 1.01 2008-12-1
*/
package edu.sjsu.phan.postlab14;

public class SalariedWorker extends Worker
{
   final int MAXHOUR = 40;
   /**Constructs a salaried worker
    * 
    * @param name Worker's name
    * @param salaryRate Worker's salary
    */
   public SalariedWorker(String name, double salaryRate)
   {
      super(name, salaryRate);
   }
   /**Returns paycheck
    * 
    * @param hour Hours worked
    * @return Money (in dollar)
    */
   public double computePay(int hour)
   {
      return super.getSalaryRate()*MAXHOUR;
   }

}
